-
Notifications
You must be signed in to change notification settings - Fork 1.8k
chore(fonts):⚡reduce font payload #1999
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: gh-pages
Are you sure you want to change the base?
chore(fonts):⚡reduce font payload #1999
Conversation
✅ Deploy Preview for expressjscom-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
🚦 Lighthouse Results (Mobile & Desktop)
|
Need to remove spaces to edit comment correctly. Also need to increase wait time for Netlify preview. Happy 😃 mobile results are improving. |
I just realized that for improving performance on mobile needs refactoring in logic and assets file. It should be good to do it in other PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to know where you got the fonts before accepting this PR.
@bjohansebas, I got this woff2 fonts from https://github.com/fontsource/font-files/tree/main/fonts/variable/open-sans/files |
Fontsource provides npm packages for the fonts: https://fontsource.org/fonts/open-sans/install |
Hi @Phillip9587, we don't use any bundler in this project so that we can not use this. See Prerequisites section. Fontsource provide CDN option, but I prefer self-hosting fonts. Tell me if I am missing something because you're suggesting this second time I guess. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍 Please, whoever reviews it, merge it as soon as possible since it improves user experience for slower Internet connections.
page load time reduced by ~300-400ms
~230-270 kB reduction in font payload
Font source: https://github.com/fontsource/font-files/tree/main/fonts/variable/open-sans/files